package com.weblog.weblogapi.service;

import com.weblog.weblogapi.dao.pojo.User;
import com.weblog.weblogapi.vo.Result;
import com.weblog.weblogapi.vo.UserVo;
import com.weblog.weblogapi.vo.params.RegisterParam;

public interface UserService {

    Result sendMsg(RegisterParam registerParam);

    Result register(RegisterParam registerParam);

    User findUserByPhone(String phone);

    Result login(RegisterParam registerParam);

    User findUser(String phone,String password);

    Result msgLogin(RegisterParam registerParam);

    Result findPassword(RegisterParam registerParam);

    User findUserById(String id);

    void updateUserMember(String uid,int day);

    Result updateUser(User user);

    UserVo findUserVoById(String userId);

    Result findUserByToken(String token);


    Result updateAvatar(User user);
}
